package com.jt.system.service.impl;


import com.jt.system.dao.UserMapper;
import com.jt.system.pojo.User;
import com.jt.system.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import sun.rmi.runtime.Log;

import java.util.List;

@Slf4j
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User selectUserByUsername(String username) {
        log.debug("username is {}",username);
        return userMapper.selectUserByUsername(username);

    }

    @Override
    public List<String> selectUserPermissions(Long userId) {
        log.debug("userId is {}",userId);
        return userMapper.selectUserPermissions(userId);
    }
}